#pragma once
#include "Component.h"
#include "../../Math/GeometryGenerator.h"
#include "../../Render/Buffer/VertexBuffer.h"
#include "../../Render/Buffer/IndexBuffer.h"

class Model : public Component
{
public:

	Model() = default;
	Model(const std::string path);
	Model(GeometryGenerator::MeshData& meshData, bool generateTangent = false);

public:
	
	std::vector<Vertex> mVertexs;

	std::vector<uint32> mIndices;

	RefCountPtr<VertexBuffer> mVertexBuffer;

	RefCountPtr<IndexBuffer> mIndexBuffer;
};